package com.ctshk.rpc.booking.req.outside.car.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 站外租车出行信息
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-09
 */
@Data


@ApiModel(value="SupplierOutsideOrderCarRentalReq对象", description="站外租车出行信息")
public class SupplierOutsideOrderCarRentalReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单ID")
    private Long orderId;

    @NotNull(message = "使用日期起始不能为空")
    @ApiModelProperty(value = "使用日期起始")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "使用日期截至")
    private LocalDateTime endTime;

    @NotBlank(message = "启程城市不能为空")
    @ApiModelProperty(value = "启程城市JSON")
    private String startCityJson;

    @ApiModelProperty(value = "启程地点")
    private String startLocation;

    @NotBlank(message = "到达城市不能为空")
    @ApiModelProperty(value = "到达城市JSON")
    private String endCityJson;

    @ApiModelProperty(value = "到达地点")
    private String endLocation;

    @NotBlank(message = "租车类别不能为空")
    @ApiModelProperty(value = "租车类别JSON")
    private String carTypeJson;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "数量")
    private Integer totalNum;

    @NotNull(message = "旅客人数不能为空")
    @ApiModelProperty(value = "旅客人数")
    private Integer touristNum;

    @ApiModelProperty(value = "说明")
    private String remark;

    @Valid
    @NotEmpty(message = "出租车旅客列表不能为空不能为空")
    @ApiModelProperty(value = "出租车旅客列表不能为空")
    private List<SupplierOutsideOrderCarRentalTouristReq> supplierOutsideOrderCarRentalTouristReqList;
}
